package cn.gxa.j229.bug.finance;


import lombok.Data;
import lombok.NoArgsConstructor;


@Data
@NoArgsConstructor
public class BusinessException extends RuntimeException{
    private static final long serialVersionUID = 10000001L;

    private static final String ID_ERROR = "token异常:";

    private String errCode;
    private String errMessage;

    public BusinessException(String errMessage) {

        super(errMessage);
        this.errMessage = errMessage;
    }
    public BusinessException(String errCode, String errMessage) {

        super(errMessage);
        this.errCode = errCode;
        this.errMessage = errMessage;
    }

    public static BusinessException notEmpty(String name) {
        return new BusinessException("1000102", name);
    }
}
